<%@ page isELIgnored="false" %>
<%@ include file="/inc/header.jsp" %>

      <script src="<html:rewrite page="/js/calendar.js"/>" language="JavaScript1.2"></script>
      <script src="<html:rewrite page="/js/calendar_suite.js"/>" language="JavaScript1.2"></script>
      <script src="<html:rewrite page="/js/calendar-fr.js"/>" language="JavaScript1.2"></script>

      <span class="titrePage">
         <bean:message key="entity.Note"/>
      </span>
      <br/>
      <br/>
      <blockquote>
         <common:errors/>
         <common:success/>

         <html:form action="/massiveAddNoteAction">

       		<span class="label"> <bean:message key="field.dateNote"/> : 
       		<bean:write name="MultipleNoteForm" property="dateNote"/> </span>
		    <html:hidden property="dateNote"/>
       		<br/>
       		<br/>
       		<br/>

	        <table width="75%" cellspacing="0" cellpadding="5">
	           <tr>
	              <th width="30%"><bean:message key="field.eleve"/></th>
	              <th width="40%"><bean:message key="field.competence"/></th>
	              <th width="15%"><bean:message key="field.note"/></th>
	              <th width="15%"><bean:message key="field.commentaire"/></th>
	           </tr>
            <logic:iterate id="currentEleve" indexId="indexEleve" name="ELEVE" scope="request">
	           <logic:iterate id="currentCompetence" indexId="indexCompetence" name="COMPETENCE" scope="request">
	           <tr>
	              <td align="left">&nbsp;
	              	<logic:equal name="indexCompetence" value="0">
		              	<input type="hidden" name="eleve" value="<bean:write name="currentEleve" property="id"/>">
		              	<bean:write name="currentEleve" property="nom"/> <bean:write name="currentEleve" property="prenom"/>
	              	</logic:equal>
	              </td>
	              <td align="left">
	              	<logic:equal name="indexEleve" value="0">
		              	<input type="hidden" name="competence" value="<bean:write name="currentCompetence" property="id"/>">
	              	</logic:equal>
	              	<bean:write name="currentCompetence" property="nom"/>
	              </td>
	              <td><input type="text" name="note-${currentEleve.id}-${currentCompetence.id}" value="E" size="10" /></td>
	              <td><input type="text" name="commentaire-${currentEleve.id}-${currentCompetence.id}" size="20" /></td>
	           </tr>
				</logic:iterate>
			</logic:iterate>
            </table>

            <br/>
            <br/>
            <input value="<bean:message key="button.save"/>" type="submit" name="submit"/>
            <input value="<bean:message key="button.cancel"/>" type="button" name="cancel" onClick="history.back()"/>
         </html:form>
      </blockquote>
<%@ include file="/inc/footer.jsp" %>
